package com.suyafei.hot.utils;

import org.mariadb.jdbc.Driver;

import java.sql.Connection;
import java.sql.DriverManager;


/**
 * @program: hot
 * @description
 * @author: luffy
 * @create: 2020-12-15 10:11
 */
public class HotJDBC {
    public static final String URL = "jdbc:mysql://114.116.226.141:13306/hot";
    public static final String USER = "root";
    public static final String PASSWORD = "root";

    public static Connection getConn() throws Exception{


        Class.forName("org.mariadb.jdbc.Driver");
        Connection connection = DriverManager.getConnection(URL, USER, PASSWORD);

        return connection;
    }
}
